package freshmanspecial.mredrock.com.welcomefreshman.Presenter;

import android.content.Intent;
import android.os.Build;

import freshmanspecial.mredrock.com.welcomefreshman.View.DataView;
import freshmanspecial.mredrock.com.welcomefreshman.View.IMainView;
import freshmanspecial.mredrock.com.welcomefreshman.View.MainView;
import freshmanspecial.mredrock.com.welcomefreshman.View.StrategyView;
import freshmanspecial.mredrock.com.welcomefreshman.View.MienView;
import freshmanspecial.mredrock.com.welcomefreshman.View.TrainView;

/**
 * Created by Administrator on 2017/8/2 0002.
 */

public class MainPresenter implements IMainPresenter{
    private IMainView mainView;
    public MainPresenter(MainView mainView){
        this.mainView = mainView;
    }
    @Override
    public void goToDataView() {
        Intent intent = new Intent(mainView.getActivity(), DataView.class);
        mainView.getActivity().startActivity(intent);
    }

    @Override
    public void goToStrategyView() {
        Intent intent = new Intent(mainView.getActivity(), StrategyView.class);
        mainView.getActivity().startActivity(intent);
    }

    @Override
    public void goToMienView() {
        Intent intent = new Intent(mainView.getActivity(), MienView.class);
        mainView.getActivity().startActivity(intent);
    }


    @Override
    public void goTotrainView() {
        Intent intent = new Intent(mainView.getActivity(), TrainView.class);
        mainView.getActivity().startActivity(intent);
    }
}
